import { faker } from '@faker-js/faker';
import { HttpResponse } from 'msw';
export const fakeAvatars = (count: number) => {
  const result = [];
  for (let index = 0; index < count; index += 1) {
    result.push(faker.image.avatarLegacy());
  }
  return result;
};

export const formateSuccessResp = (data: any) => {
  return HttpResponse.json({
    code: 200,
    message: '',
    data,
  })
}
